<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- 避免IE使用兼容模式 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<meta name="renderer" content="webkit">
</head>
<body>
	
	<div class="all">
		<div class="line_input_one" style="margin-top: 20px;">
			<div class="one_L">项目名称*<span style="padding: 5px;"></span></div>
			<div class="one_R two_R">
				<input type="hidden" name="pd_xiangmu_id" id="pd_xiangmu_id">
				<input type="text" name="pd_xiangmu_name" id="pd_xiangmu_name" style="height: 39px;"
				       data-toggle="topjui-combobox"
				       data-options="required:true,prompt:'必填',
				                  	 panelHeight:150,
														 onSelect:function(node){
															  $('#pd_xiangmu_id').val(node.id);
														 },
				                   	 valueField:'zidian_value',
				                   	 textField:'zidian_value'">
			</div>
			<div class="one_L">年月*<span style="padding: 5px;"></span></div>
			<div class="one_R two_R">
				<input type="text" name="pd_shijian" style="height: 39px;"
				       data-toggle="topjui-datebox" 
							 data-options="required:true,id:'pd_shijian',prompt:'必选',width:300">
			</div>
		</div>
		<div class="line_input_one">
			<div class="one_L">种类*<span style="padding: 5px;"></span></div>
			<div class="one_R two_R">
				<input type="text" name="pd_zhonglei_name" id="pd_zhonglei_name" style="height: 39px;"
				       data-toggle="topjui-autocomplete"
				       data-options="required:true,prompt:'请输入种类名称',
				                     panelHeight:150,
				                     onSelect:function(node){
				                     	 getA_ZhL_PZhList(node.id);
				                     },
													   textField:'zhonglei_name',
				                     valueField:'zhonglei_name'">
			</div>
			<div class="one_L">食(物)品名称*<span style="padding: 5px;"></span></div>
			<div class="one_R two_R">
				<input type="text" name="pd_shipin_name" id="pd_shipin_name" style="height: 39px;"
				       data-toggle="topjui-autocomplete"
				       data-options="required:true,prompt:'请输入食(物)品名称',
				                  	 panelHeight:150,
														 onSelect:function(node){
															  var zhonglei_name=$('#pd_zhonglei_name').iAutocomplete('getValue');
																console.log('在编辑页面中取到的种类名称==',zhonglei_name);
																getDjxx(zhonglei_name,node.pinzhong_name);
														 },
				                   	 valueField:'pinzhong_name',
				                   	 textField:'pinzhong_name'">
			
			
			</div>
		</div>
		<div class="line_input_one">
			<div class="one_L">数量*<span style="padding: 5px;"></span></div>
			<div class="one_R two_R">
				<input id="pd_shuliang" type="text" name="pd_shuliang" style="height: 39px;"
				       data-toggle="topjui-numberbox"
				       data-options="required:true,prompt:'必填',
							               onChange:function(newValue, oldValue){
							 								 jisuan_zongjia();
							               },min:0">
			</div>
			<div class="one_L">单位<span style="padding: 5px;"></span></div>
			<div class="one_R two_R">
				<input id="pd_danwei" type="text" name="pd_danwei" style="height: 39px;"
				       data-toggle="topjui-textbox"
				       data-options="prompt:'单位非必填'">
			</div>
		</div>
		<div class="line_input_one">
			<div class="one_L">单价(元)*<span style="padding: 5px;"></span></div>
			<div class="one_R two_R">
				<input id="pd_danjia" type="text" name="pd_danjia" style="height: 39px;"
				       data-toggle="topjui-numberbox"
				       data-options="required:true,prompt:'必填',
							               onChange:function(newValue, oldValue){
															//console.log('newValue==',newValue);
															//console.log('oldValue==',oldValue);
							               	var sl=$('#pd_shuliang').iNumberbox('getValue'); 
															if(sl != ''){
																var z=sl*newValue;
																$('#pd_zongjia').iNumberbox('setValue', z);
															}
							               },
														 min:0,precision:2,prefix:'￥'">
			</div>
			<div class="one_L">总价(元)<span style="padding: 5px;"></span></div>
			<div class="one_R two_R">
				<input id="pd_zongjia" type="text" name="pd_zongjia" style="height: 39px;" readonly="readonly"
				       data-toggle="topjui-numberbox"
				       data-options="min:0,precision:2,prefix:'￥'">
			</div>
		</div>
		
		<div class="line_input_one" style="margin-top: 5px;">
			<div class="one_L">备注<span style="padding: 5px;"></span></div>
			<div class="one_R">
				<input id="pd_beizhu" type="text" name="pd_beizhu" data-toggle="topjui-textbox"
				       data-options="prompt:'请输入盘点备注',
				                   	 height:100,
				                   	 multiline:true,validType:'maxLength[500]' "/>
			</div>
		</div>
				
	</div>
</body>
</html>